<link rel="stylesheet" type="text/css" href="<?=MY_URL?>/css/activity.css" />
<script type="text/javascript" src="<?=MY_URL?>/html/scripts/jquery-1.5.1.js"></script>
<script>
function turnPlate() {
  $.post("/tool-turnplate",
	      {act: "turnPlate", rewardemail: $('input[name="rewardemail"]').val(), ordernumber: $('input[name="ordernumber"]').val()},
	      function( data ) {
            $('#flash').html(data);
			return false;
           });
}
function getEmail()
{	
	return $('input[name="rewardemail"]').val();
}
function getOrderNumber()
{	
	return $('input[name="ordernumber"]').val();
}
function getCode(){
	var email = $("#getcodeemail").val();
	if(email==""){
		alert('Please fill in your email.');
		return 0;
	}
	$.post("/activity-getcode",{email:email},function(data){
		if(data=='success'){
			alert('Please check your email and get the code.');
		}else if(data=='false'){
			alert('Email has been sent,Please check your email and get the code.');
		}else{
			alert('Fail to send the email.');
		}
	}



		);
}
function checkreturn(){
	var email = $("#getcodeemail").val();
	if(email==""){
		alert('Please fill in your email.');
		return 0;
	}
	
	var codenumber = $("#codenumber").val();
	if(codenumber==""){
		alert('Please fill in the code.');
		return 0;
	}
	document.getElementById("getcodeform").submit();
}
</script>

<div>
	<div id="activity_image"></div>
	<div id="day">
	<div style="margin-left:50px;width:280px;float:left;padding-left:80px;padding-top:8px;font-size:30px;<?php if($this->today==11):?>color:white;<?php endif;?>">June 11</div>
	<div style="margin-left:50px;width:220px;float:left;padding-top:8px;font-size:30px;<?php if($this->today==12):?>color:white;<?php endif;?>">June 12</div>
	<div style="margin-left:50px;width:200px;float:left;padding-top:8px;font-size:30px;<?php if($this->today==13):?>color:white;<?php endif;?>">June 13</div></div>
	</div>
	<div id="activity_content">
		<div class="border_left"></div>
		<div class="flash" id="flash">
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="497" height="497" id="turnplate">
			 	<param name="allowScriptAccess" value="always" />
			    <param name="FlashVars" id="FlashVars" value="fvar=0&tips=" />
			    <param name="movie" value="<?=MY_URL?>/html/flash/turnplate.swf">
			    <param name="menu" value="false">
			    <param name="quality" value="high">
			    <param name="wmode" value="transparent">
			    <embed src="<?=MY_URL?>/html/flash/turnplate.swf" FlashVars="fvar=0&tips=" id="FlashVars"  width="497" height="497"  quality="high" id="turnplate" name="turnplate" wmode="transparent" allowScriptAccess="always"  pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
			</object>
		</div>
		<div id="activity_main">
			<div id="getreward">
				<div style="padding-top:10px;">Please Enter You Email and</div>
				<div style="margin-bottom:20px;">Order Tracking Number</div>
				<table>
				<form action="/activity-verify" method="post">
					<tr><td width="40%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email:&nbsp;&nbsp;</td><td><input type="text" name="rewardemail"></td></tr>
					<tr><td>&nbsp;</td></tr>
					<tr><td width="40%">Order Number:&nbsp;&nbsp;</td><td><input type="text" name="ordernumber"></td></tr>
					<tr><td colspan="2">&nbsp;</td></tr>
					<tr><td style="color:#900;text-align:center;" colspan="2">Start after fill in the blanks!</td></tr>
				</form>
				</table>
			</div>
			<div id="getcode">
				<table>
				<form action="/activity-showproduct" method="post" id="getcodeform">
				<tr><td width="20%">Email:&nbsp;</td><td width="60%"><input type="text" name="getcodeemail" id="getcodeemail"></td><td width="20%"><input onclick="getCode()" type="button" name="getcode"  style="background-image:url(<?=MY_URL?>/images/activity/secret-sale_03.png); width:63px;" ></td></tr>
				<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td width="20%">Code:&nbsp;&nbsp;</td><td width="60%"><input type="text" name="codenumber" id="codenumber"></td><td width="20%"></td></tr>
				<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td></td><td><input type="button" name="submit1" value="" class="button" onclick="checkreturn();"></td><td></td></tr>
				</form>
				</table>
			</div>
		</div>
			
		<div class="border_right"></div>
	</div>
	<div class="clear"></div>
	<div id="introduce"></div>
</div>